How to solve these coding challenges:


Challenge #1

Sample List : [1,2,3,3,3,3,4,5, 1, 3, 5, 5, 5]

Unique List : [1, 2, 3, 4, 5]

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #2

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #3

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #4

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #5

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #6

Example: fibo(23) will return 0, 1, 1, 2, 3, 5, 8, 13, 21

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #7

Are you stuck? Do you want to see the solution to this exercise? Click here.


Challenge #8

Change the solution of the previous challenge so that the function receives a string of numbers separated by a comma.

Example:

nums = '2, 3, 10, 5'

print(equilibrium_index(nums)) # => 2

nums = '3, 3, 10, 5'

print(equilibrium_index(nums)) # => False

Are you stuck? Do you want to see the solution for this exercise? Click here.


Challenge #9

Example: by calling draw_tree(5) it will display:

*

***

*****

*******

*********

Are you stuck? Do you want to see the solution for this exercise? Click here.